export abstract class CarCalculate {

    abstract carPrice(): number;

    abstract tax(): number;

    abstract cheap(): number;

    total(): void {
        const total: number = this.carPrice() + this.tax() - this.cheap();
        console.log(`总价格为：${total}`);
    }
}